<? 
/**
 * Description of Error
 *
 * @author Андрей
 */
class Error {
    private $registry;
    public function __construct() {
        $this->registry = Registry::getInstance();
        $this->registry->pageunit->data = null;
    }
    public function index($type) {
        switch ($type) {
            case 404:
                $this->registry->pageunit->addHeap('<h1>404 парни!</h2>');
                break;

            default:
                break;
        }
    }
}

?>
